package com.chen.q1.aop;

import org.aspectj.lang.ProceedingJoinPoint;

public class Aop1 {
    public void startTransaction(){
        System.out.println("begin newSchoolYear....");
    }

    public void commitTransaction(){
        System.out.println("finish newSchoolYear....");
    }

    public void around(ProceedingJoinPoint joinPoint){
        System.out.println("------------->around school begin........");
        try {
            joinPoint.proceed();
        } catch (Throwable throwable) {
            throwable.printStackTrace();
        }
        System.out.println("------------->around school end..........");

    }
}
